{layout name="public/layout" /}
{include file='yxnavbar'}
<form class="form-horizontal form" action="" id="form1"  method="post" enctype="multipart/form-data">
    <div class="panel panel-default" role="tabpanel" style="">
        <div class="panel-heading" style="background-color: #478ec8;color: #ffffff;">批量额外补发红包</div>
        <div class="panel-body" style="">
            <div class="form-group">
                <label class="col-sm-1 col-xs-12 control-label">定单号列表</label>
                <div class="col-sm-10 col-xs-12">
                    <textarea rows="20" cols="50" class="form-control"  name="order_list" {if !empty($order_list_txt)} readonly{/if}>{$order_list_txt}</textarea>
                    {if empty($order_list_txt)}
                    <span class="help-block">请输入<span style="color:#19b5ee;">定单管理最左侧的定单号，不是团号；</span>一行一个定单或用逗号(,)分号(;)分隔;重复定单号系统会自动删除；</span>
                    <span class="help-block">注意：录入重复系统会保留一个,未付款或退款的定单不可以补发且每个定单只能补发一次</span>
                    {/if}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 col-xs-12 control-label">补发金额</label>
                <div class="col-sm-10 col-xs-12">
                    <div class="input-group">
                        <span class="input-group-addon">￥</span>
                        <input type="text" class="form-control"  placeholder="" name="fee"  value="{$fee}" {if !empty($order_list_txt)} readonly{/if}>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 col-xs-12 control-label"><span style="color: red;">*</span>发给谁</label>
                <div class="col-sm-10 col-xs-12">
                    <label class="radio-inline">
                        <input type="radio" name="send_who" id="inlineRadio1" value="0" {if $send_who == 0}checked="checked"{/if} {if !empty($order_list_txt)} disabled{/if}> 定单的付款者
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="send_who" id="inlineRadio2" value="1" {if $send_who ==1}checked="checked"{/if} {if !empty($order_list_txt)} disabled{/if}> 定单的推荐者
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="send_who" id="inlineRadio3" value="2" {if $send_who ==2}checked="checked"{/if} {if !empty($order_list_txt)} disabled{/if}> 定单的员工
                    </label>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group" >
        <div class="col-sm-12">
            {if !empty($order_list_txt)}
            {if $chongfu>0 || $wuxiao>0 || $buguo>0}
            <span class="help-block">删除：
                {if $chongfu>0}<span style="color:#ff0000;">重复{$chongfu}个；</span>{/if}
                {if $wuxiao>0}<span style="color:#ff0000;">未付款或退款定单{$wuxiao}个；</span>{/if}
                {if $buguo>0}<span style="color:#ff0000;">之前补发过的定单{$buguo}个；</span>{/if}
            </span>
            {/if}
            <input  name="submit_Confirm" id="submit_Confirm" type="submit" value="确认补发（共 {$bufa} 个）" class="btn btn-success col-lg-3" style="width:220px;">
            <input type="hidden" name="order_list_ids" value="{$order_list_ids}" />
            <input type="hidden" name="send_who_confirm" value="{$_P['send_who']}" />
            {else}
            <input  name="submit" id="btnConfirm" type="submit" value="立即补发" class="btn btn-primary col-lg-3" style="width:120px;">
            {/if}
            <input type="hidden" name="__token__" value="{$Request.token}" />
        </div>
    </div>
</form>

